package de.gee.erep.client.ui.presenter;

import de.gee.erep.client.Environment;

/**
 * @author Matthew Gee created: 13.03.2011
 * @param <D>
 *            d
 */
public abstract class Presenter<D> {
	/***/
	private String params;
	/***/
	private D display;
	/***/
	private Environment environment;

	/***/
	public Presenter() {
	}

	/**
	 * 
	 * @param aDisplay
	 *            d
	 * @param anEnvironment
	 *            e
	 * @param params
	 *            p
	 */
	public Presenter(final D aDisplay, final Environment anEnvironment,
			final String... params) {
		super();
		this.setParams(params[0]);
		display = aDisplay;
		environment = anEnvironment;
		// ...get parameters from someParams...
	}

	/**
	 * 
	 * @return {@link Environment}
	 */
	public final Environment getEnvironment() {
		return environment;
	}

	/**
	 * 
	 * @return D d
	 */
	public final D getDisplay() {
		return display;
	}

	/**
	 * @param params
	 *            the params to set
	 */
	public final void setParams(final String params) {
		this.params = params;
	}

	/**
	 * @return the params
	 */
	public final String getParams() {
		return params;
	}
}
